﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.SpecGroupTemplate.Model
{
    public class SpecGroupTSet
    {
        /// <summary>
        /// 类目ID
        /// </summary>
        [NumValidate("shop.category.id.error", 1)]
        public long CategoryId { get; set; }
        /// <summary>
        /// 组名
        /// </summary>
        [NullValidate("shop.spec.group.name.null")]
        [LenValidate("shop.spec.group.name.len", 2, 50)]
        public string GroupName { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
    }
}
